home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.orig.lzh
/
libcnews
/
nemalloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-27
|
261b
|
15 lines
#include <stdio.h>
#include <sys/types.h>
#include "libc.h"
char *
nemalloc(size) /* news emalloc - calls errunlock on error */
unsigned size;
{
register char *result = malloc(size);
if (result == NULL)
errunlock("out of memory", "");
return result;
}